/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.srcptit.trainning.huongpq.btvn1;

import java.util.Arrays;
import java.util.Scanner;
/**
 *
 * @author Admin_Pro
 */
public class Bai1_P2 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double day[];
        int n;
        System.out.println("nhap so luong phan tu cua day: ");
        n = sc.nextInt();
        day = new double[n];
        int i;
        System.out.println("nhap cac phan tu cua day so thuc: ");
        for (i = 0; i < n; i++) {
            day[i] = sc.nextDouble();
        }
        Arrays.sort(day);
        System.out.println("day sau khi xap xep: ");
        for (i = 0; i < n; i++) {
            System.out.print(day[i] + " ");
        }
        System.out.println("");
    }

}
